package com.sanctuary.dao.interfaces;

import java.sql.SQLException;
import java.util.List;

import com.sanctuary.models.User;

public interface UserDao {
	public User findById(int id) throws SQLException;
	public User findByEmail (String email) throws SQLException;
	public User findByUsername (String username) throws SQLException;
	public User authenticate (User u) throws SQLException;
	public List<User> findActive () throws SQLException;
	public int save (User u) throws SQLException;
	public int delete (User u) throws SQLException;
	
}
